﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Register : MonoBehaviour {

    //聊天UI和注册UI 2个面板
    public GameObject liaotianPanel, zhucePanel;
    //用户输入框 获取它的值
    public InputField _input;
    //缓存用户输入的昵称
    public string playerName;


    public void OnRegBtn() {
        //将用户的输入,缓存到string对象上.
        playerName = _input.text;
        //将注册界面关闭,聊天界面激活
        zhucePanel.SetActive(false);
        liaotianPanel.SetActive(true);

        //没有做用户输入的验证
    }

}
